<template>
  <el-table-column width="120" label="流程状态：-1 删除 0 草稿 1 处理中 2 拒绝并结束 3 完成 4 取消 5 驳回 6 驳回所有"
                   align="center" prop="flowStatus">
    <template #default="scope">
      <!--    用不同颜色标签表示      -->
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.DRAFT" type="info" effect="dark">
        {{ G.FLOW_STATUS_NAME.DRAFT }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.PROCESSING" type="success" effect="dark">
        {{ G.FLOW_STATUS_NAME.PROCESSING }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.RETURNED_ALL" type="danger" effect="dark">
        {{ G.FLOW_STATUS_NAME.RETURNED_ALL }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.RETURNED" type="danger" effect="dark">
        {{ G.FLOW_STATUS_NAME.RETURNED }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.CANCEL" type="success" effect="dark">
        {{ G.FLOW_STATUS_NAME.CANCEL }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.COMPLETE" type="success" effect="dark">
        {{ G.FLOW_STATUS_NAME.COMPLETE }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.REJECTED" type="danger" effect="dark">
        {{ G.FLOW_STATUS_NAME.REJECTED }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.DELETE" type="danger" effect="dark">
        {{ G.FLOW_STATUS_NAME.DELETE }}
      </el-tag>
      <el-tag v-if="scope.row.flowStatus == G.FLOW_STATUS.REJECT_AND_END" type="danger" effect="dark">
        {{ G.FLOW_STATUS_NAME.REJECT_AND_END }}
      </el-tag>
    </template>
  </el-table-column>
</template>
<script setup name="FlowStatusColumn">

</script>
<style scoped lang="scss">
.FlowStatusColumn {
}
</style>
